package com.zl.aop;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author ZLL
 * @date create in 2018/05/09
 */
public class MM {

    public static void main(String[] args) {
        ApplicationContext ac = new ClassPathXmlApplicationContext("spring3.xml");

        TestBean bean = ac.getBean(TestBean.class);

//        bean.greet("zs");
//
//        bean.greet(null);

        bean.greet("hello world");
    }
}
